package com.zc.serviceuser.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.zc.commonutils.Result;
import com.zc.serviceuser.entity.User;
import com.zc.serviceuser.entity.dto.LoginFormDTO;
import com.zc.serviceuser.entity.dto.LoginFormDTOTwo;
import com.zc.serviceuser.entity.dto.registerFormDTO;
import com.zc.serviceuser.service.impl.UserServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Service
public interface IUserService extends IService<User> {
    Result login(LoginFormDTO loginFormDTO) throws JsonProcessingException;

    Result register(registerFormDTO registerFormDTO);

    Result loginTwo(LoginFormDTOTwo loginFormDTOTwo) throws JsonProcessingException;

    Result readExcel(MultipartFile file, UserServiceImpl userService);

     void wireExcel(String description, HttpServletResponse response) throws IOException;
}
